package com.yingxin.yxerp.module.organization.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yingxin.yxerp.module.organization.entity.User;
import com.yingxin.yxerp.module.organization.entity.UserAppRole;
import com.yingxin.yxerp.module.permission.entity.AppRole;
import java.util.List;

/**
 * 用户-角色 服务类
 * @author fanchao
 * @since 2021-05-10
 */

public interface IUserAppRoleService extends IService<UserAppRole> {

    /**
     * 根据 userId 查询
     */
    List<UserAppRole> listByUserId(String userId);

    Boolean deleteByUserId(User user);

    void create(User user, AppRole role);

}
